﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebApiV3.Domain
{
    public interface IRespository<T>
    {
        IQueryable<T> Table { get; }

        T GetById(int id);

        void Insert(T entity);

        void InsertBulk(IEnumerable<T> list);//批量插入

        void Updated(T entity);

        void Deleted(T entity);

        void Deleted(int id);//根据ID删除

        void Deleted(IEnumerable<T> entites);
    }
}
